package com.yanchangapp.widget;

import android.content.Context;
import android.graphics.Color;
import android.text.TextPaint;
import android.text.style.CharacterStyle;

import com.yanchangapp.R;
import com.zxl.baselib.util.ui.ResHelper;
import com.zxl.baselib.util.window.DisplayHelper;

/**
 * Created by apple on 2019-08-08.
 * description: 字体的span
 */
public class SpannableMoney extends CharacterStyle {
    private Context mContext;

    public SpannableMoney(Context context) {
        this.mContext = context;
    }

    @Override
    public void updateDrawState(TextPaint tp) {
        tp.setColor(ResHelper.getColor(R.color.colorPrimary));
        tp.setTextSize(DisplayHelper.sp2px(mContext,15));
    }
}
